import AsyncLoadable from "@/utils/AsyncLoadable";

// 首页
const Index = AsyncLoadable(() => import(/* webpackChunkName: 'index' */ "@/views/Index"));

// 通用
const ButtonView = AsyncLoadable(() => import(/* webpackChunkName: 'button' */ "@/views/Public/Button"));
const IconView = AsyncLoadable(() => import(/* webpackChunkName: 'icon' */ "@/views/Public/Icon"));
// 导航

// 其它
const UploadView = AsyncLoadable(() => import(/* webpackChunkName: 'upload' */ "@/views/Others/Upload"));

// 多级导航
const Multilevel = AsyncLoadable(() => import(/* webpackChunkName: 'three' */ "@/views/SubLevel"));

//关于
const About = AsyncLoadable(() => import(/* webpackChunkName: 'about' */ "@/views/About"));




const routes = [
  { path: "/index", exact: true, name: "Index", component: Index, auth: [1] },
  { path: "/public/button", exact: false, name: "按钮", component: ButtonView, auth: [1] },
  { path: "/public/icon", exact: false, name: "图标", component: IconView, auth: [1] },
  { path: "/others/upload", exact: false, name: "上传", component: UploadView, auth: [1] },
  { path: "/level1/level2/level3", exact: false, name: "三级", component: Multilevel },
  { path: "/about", exact: false, name: "关于", component: About, auth: [1] },
  { path: "/bo/list", exact: false, name: "商城2", component: About, auth: [1] },
  { path: "/website/flyer/list", exact: false, name: "商城3", component: About, auth: [1] },
  { path: "/customAntigen/list", exact: false, name: "商城4", component: About, auth: [1] },
  { path: "/menuList/list", exact: false, name: "商城5", component: About, auth: [1] },
];

export default routes;
